package com.educate.service;

import com.educate.pojo.ProblemLike;
import com.educate.pojo.UserProblemLike;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiongyu
 * @date 2021/12/12 17:36
 */
public interface ProblemLikeService {
    /**
     * 批量取消用户点赞
     * @param userProblemLike
     * @return
     */
    boolean deleteProblemLikeBash(List<Integer> userProblemLike);

    /**
     * 批量添加用户点赞
     *
     * @param userProblemLike
     * @return
     */
    boolean addProblemLikeBash(List<ProblemLike> userProblemLike);

    /**
     * 更新点赞数目
     * @param userProblemLikeList
     * @return
     */
    boolean updateProblemLikeNumber(List<UserProblemLike> userProblemLikeList);
}
